home *** CD-ROM | disk | FTP | other *** search
- Path: chaos.kulnet.kuleuven.ac.be!verhaege
- From: verhaege@esat.kuleuven.ac.be (Wim Verhaegen)
- Newsgroups: comp.lang.c++
- Subject: Re: C to C++
- Date: 3 Jan 1996 21:50:21 GMT
- Organization: K.U.Leuven
- Message-ID: <4cetmt$9an@chaos.kulnet.kuleuven.ac.be>
- References: <30EA2EA0.86C@comcept.ab.ca>
- NNTP-Posting-Host: deugniet.esat.kuleuven.ac.be
- X-Newsreader: TIN [version 1.2 PL2]
-
- The BFP (bfp@comcept.ab.ca) wrote:
- > Hey,
-
- > I am new at this stuff, and I am trying to learn C++. I have looked at C
- > source code, and incredibly Simple programs like
-
- > <#include stdio.h>
-
- > printf("Hi")
-
- > Will not compile for C++. I am lame, yes, I kn ow but, hey, Nobody is
- > perfect, anyways, could somebody help me :)
-
- > Please :)
-
- Don't try making your programs too simple (and learn the proper syntax)
- The following should work:
-
- // BEGIN
- #include <stdio.h>
-
- int main()
- {
- printf("Hi\n");
- return 0; // not necessary, but convenient
- }
- // END
-
- --
- Wim Verhaegen | All theory is grey, my friend,
- Dept. of Electrical Engineering | And green the golden tree of life.
- KU Leuven, Belgium |
- verhaege@esat.kuleuven.ac.be | Goethe
-